package com.yft.service.pos_information;

import com.yft.dao.pos_information.PosSupplyChannelDao;
import com.yft.entity.base.Order;
import com.yft.entity.base.Pager;
import com.yft.entity.posinformation.PosSupplyChannel;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("posSupplyChannelService")
public class PosSupplyChannelServiceImp implements PosSupplyChannelService {
	Logger log = Logger.getLogger(PosSupplyChannelServiceImp.class);
	
	@Autowired(required = true)
	private PosSupplyChannelDao posSupplyChannelDao;

    @Override
    public Object addPosSupplyChannel(PosSupplyChannel posSupplyChannel) {
        return posSupplyChannelDao.addPosSupplyChannel(posSupplyChannel);
    }

    @Override
    public PosSupplyChannel getPosSupplyChannel(Integer posSupplyChannelPk) {
        return posSupplyChannelDao.getPosSupplyChannel(posSupplyChannelPk);
    }

    @Override
    public boolean updateValues(PosSupplyChannel condition, String cumstomStr) {
        return posSupplyChannelDao.updateValues(condition,cumstomStr);
    }

    @Override
    public List<PosSupplyChannel> getPosSupplyChannelList(PosSupplyChannel condition, Order order, Pager pager) {
        return posSupplyChannelDao.getPosSupplyChannelList(condition,order,pager);
    }
}
